﻿using Newtonsoft.Json;
using System;

namespace UserData.数据保存
{
    public class TestInfo
    {
        public string Name { get; set; }
        public dynamic Value { get; set; }
        [JsonIgnore]
        public int PointCount { get; set; } = 0;
        [JsonIgnore]
        public string Max { get; set; } = "/";
        [JsonIgnore]
        public string Min { get; set; } = "/";
        public override string ToString()
        {
            object obj = Value;
            if (obj != null)
                return obj.ToString();
            else
                return "";
        }
    }

    public class TestResultbase
    {


    }

    public class SaveAdditionalInfo
    {
        public TestInfo time_当前时间 { get; set; } = new TestInfo { Name = "当前时间", Value = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), Max = " ", Min = " " };
        public TestInfo str_Name { get; set; } = new TestInfo { Name = "名称", Value = "", Max = " ", Min = " " };


    }
}
